﻿using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
@TestRunner.Imports


namespace @Test.Namespace
{
	
	public partial class @Test.ClassName
	{

        @Tag("IComparable")
    	@TestAttribute
        public void @(Test.ClassName + "_IComparable")()
		{
			var values = CreateOrderedSet();
			var item1 = (IComparable)values.Item1;
			var item2 = (IComparable)values.Item2;
			var item3 = (IComparable)values.Item3;
			var item4 = (IComparable)values.Item4;
					   
			@Assert.IsTrue("item1.CompareTo(item1) == 0")
			@Assert.IsTrue("item1.CompareTo(item2) < 0")
			@Assert.IsTrue("item1.CompareTo(item3) < 0")
			@Assert.IsTrue("item1.CompareTo(item4) < 0")
						   
			@Assert.IsTrue("item2.CompareTo(item1) > 0")
			@Assert.IsTrue("item2.CompareTo(item2) == 0")
			@Assert.IsTrue("item2.CompareTo(item3) < 0")
			@Assert.IsTrue("item2.CompareTo(item4) < 0")
						   
			@Assert.IsTrue("item3.CompareTo(item1) > 0")
			@Assert.IsTrue("item3.CompareTo(item2) > 0")
			@Assert.IsTrue("item3.CompareTo(item3) == 0")
			@Assert.IsTrue("item3.CompareTo(item4) == 0")
						   
			@Assert.IsTrue("item4.CompareTo(item1) > 0")
			@Assert.IsTrue("item4.CompareTo(item2) > 0")
			@Assert.IsTrue("item4.CompareTo(item3) == 0")
			@Assert.IsTrue("item4.CompareTo(item4) == 0")

		}

        @Tag("IComparable")
        @TestAttribute
        public void @(Test.ClassName + "_IComparable_Null")()
		{
			var values = CreateOrderedSet();
			var item1 = (IComparable)values.Item1;
			var item2 = (IComparable)values.Item2;
			var item3 = (IComparable)values.Item3;
			var item4 = (IComparable)values.Item4;

			@Assert.IsTrue("item1.CompareTo(null) > 0")
			@Assert.IsTrue("item1.CompareTo(null) > 0")
			@Assert.IsTrue("item1.CompareTo(null) > 0")
			@Assert.IsTrue("item1.CompareTo(null) > 0")

		}
	}
}

